<template>
  <div class="recommend">
    <div v-for="item in recommends" :key="item.id" class="recommenditem">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
props:{
  recommends:{
    type:Array
  }
}
}
</script>

<style scoped>
.recommend{
  display: flex;
  text-align: center;
  font-size: 12px;
  padding: 10px 0 20px;
  border-bottom: 8px solid #eee;
}
.recommend .recommenditem{
  flex:1;
}
.recommend .recommenditem img {
  width: 70px;
  height: 70px;
}
</style>